<!--
*  功能描述：绩效管理：奖金调整:查看
 -->

     <!-- 项目奖金调整查看 -->
<template>
  <div>
    <div class="zong">
      <div class="zhu">
        <div class="zhuheader">项目奖金调整</div>

        <table>
          <tr>
            <td>项目部门：</td>
            <td>
              <el-select v-model="DepId" placeholder="请选择">
                <el-option v-for="item in DeptData" :key="item.DicId" :label="item.DicName" :value="item.DicId">
                </el-option>
              </el-select>
            </td>

            <td>
              <el-button type="danger" size="mini" @click="show">查询</el-button>
            </td>

          </tr>
        </table>

        <el-table :data="tableData" border style="width: 100%">
          <el-table-column label="状态">
            <template slot-scope="scope">
              {{ scope.row.DepHide == 0 ? "在职" : "离职" }}
            </template>
          </el-table-column>
          <el-table-column prop="DepName" label="部门名称"> </el-table-column>
          <el-table-column prop="DicName" label=" 专业"> </el-table-column>
          <el-table-column prop="PersonnelName" label="姓名"> </el-table-column>
          <el-table-column prop="Bouncalculation" label="项目奖金计算值">
          </el-table-column>
          <el-table-column prop="BounDepRanking" label="部门内排名">
          </el-table-column>
          <el-table-column prop="BounMutualRanking" label="互评排名">
          </el-table-column>
          <el-table-column prop="BounAdjustment" label="项目奖金调整值">
          </el-table-column>
        </el-table>
      </div>
      <div class="zhu2">
        <div class="zhuheader2">权重填写</div>
        <div class="nk">
          <table>
            <tr>
              <td>项目奖金调整值</td>
              <td colspan="10"></td>
            </tr>
            <tr>
              <td></td>
              <td>建筑</td>
              <td>结构</td>
              <td>设备</td>
              <td>电气</td>
            </tr>
            <tr>
              <td>1.部门合计</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
            </tr>
            <tr>
              <td>2.奖金占比</td>
              <td>0.00%</td>
              <td>0.00%</td>
              <td>0.00%</td>
              <td>0.00%</td>
            </tr>
            <tr>
              <td>3.奖金/人数</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
            </tr>
            <tr>
              <td>4.奖金/工资</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
            </tr>
            <tr>
              <td>5.权重</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
            </tr>
            <tr>
              <td colspan="10">
                <el-button type="danger" size="mini">保存</el-button>
                <el-button type="danger" size="mini">确认提交</el-button>
              </td>
            </tr>
          </table>
        </div>
        <div class="nk">
          <table>
            <tr>
              <td>项目奖金计算值</td>
              <td colspan="10"></td>
            </tr>
            <tr>
              <td></td>
              <td>建筑</td>
              <td>结构</td>
              <td>设备</td>
              <td>电气</td>
            </tr>
            <tr>
              <td>1.部门合计</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
            </tr>
            <tr>
              <td>2.奖金占比</td>
              <td>0.00%</td>
              <td>0.00%</td>
              <td>0.00%</td>
              <td>0.00%</td>
            </tr>
            <tr>
              <td>3.部门人数</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
            </tr>
            <tr>
              <td>4.人数占比</td>
              <td>0.00%</td>
              <td>0.00%</td>
              <td>0.00%</td>
              <td>0.00%</td>
            </tr>
            <tr>
              <td>5.奖金/人数</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
            </tr>
            <tr>
              <td>6.部门工资</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
            </tr>
            <tr>
              <td>7.工资占比</td>
              <td>0.00%</td>
              <td>0.00%</td>
              <td>0.00%</td>
              <td>0.00%</td>
            </tr>
            <tr>
              <td>8.奖金/工资</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
              <td>0.00</td>
            </tr>
            <tr>
              <td colspan="10">
                <el-button type="danger" size="mini">保存</el-button>
                <el-button type="danger" size="mini">确认提交</el-button>
              </td>
            </tr>
          </table>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      DeptData: [],
      tableData: [],
      DepId: '',
    };
  },
  methods: {
    //显示
    show () {
      var assid = this.$route.params.id;
      this.$http({
        url: 'AssBonu/GetViewBusnPerDep',
        method: 'get',
        params: {
          DepId: this.DepId,
          AssId: assid
        }
      })
        .then(res => {
          this.tableData = res.data
        })

    },
    showDic () {//建筑类型
      this.$http({
        url: 'Institutionalsetting/selecDic',
        mounted: 'get',
        params: {
          DicCode: 'M_t'
        }
      })
        .then(res => [
          this.DeptData = res.data.Data,
        ])
    },
  },
  created () {
    this.show();
    this.showDic();
  },
};
</script>

<style scoped>
.zhu {
  width: 55%;
  height: 100%;
  float: left;
  margin-bottom: 50px;
}
.zhu2 {
  width: 40%;
  height: 100%;
  margin-left: 60%;
  border: 1px solid blue;
}
.zhuheader2 {
  width: 100%;
  height: 40px;
  background-color: blue;
  color: white;
  text-align: left;
  white-space: nowrap;
}
.zhuheader {
  width: 100%;
  height: 40px;
  color: white;
  text-align: left;
  white-space: nowrap;
  background-color: blue;
}
.zong {
  width: 100%;
  height: 100%;
}
table td {
  border: 1px solid #ccc;
  border-bottom: 1px solid #999;
  border-right: 1px solid #999;
}
table {
  border-top: 1px solid #999;
  border-left: 1px solid #999;
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
}
.nk {
  width: 90%;
  height: 100%;
  margin-left: 60%;
  margin-left: 5%;
  margin-bottom: 20px;
}
</style>





